//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package cn.tedu.bonfire.admin.content.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("content_tag")
public class Tag implements Serializable {
    @TableId(
            type = IdType.AUTO
    )
    private Long id;
    private String tagName;
    private Integer clickTimes;
    private Integer auditStatus;
    @TableField(
            fill = FieldFill.INSERT
    )
    private LocalDateTime gmtCreate;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private LocalDateTime gmtModified;

    public Tag() {
    }

    public Long getId() {
        return this.id;
    }

    public String getTagName() {
        return this.tagName;
    }

    public Integer getClickTimes() {
        return this.clickTimes;
    }

    public Integer getAuditStatus() {
        return this.auditStatus;
    }

    public LocalDateTime getGmtCreate() {
        return this.gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return this.gmtModified;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public void setTagName(final String tagName) {
        this.tagName = tagName;
    }

    public void setClickTimes(final Integer clickTimes) {
        this.clickTimes = clickTimes;
    }

    public void setAuditStatus(final Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public void setGmtCreate(final LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public void setGmtModified(final LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Tag)) {
            return false;
        } else {
            Tag other = (Tag)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$clickTimes = this.getClickTimes();
                Object other$clickTimes = other.getClickTimes();
                if (this$clickTimes == null) {
                    if (other$clickTimes != null) {
                        return false;
                    }
                } else if (!this$clickTimes.equals(other$clickTimes)) {
                    return false;
                }

                Object this$auditStatus = this.getAuditStatus();
                Object other$auditStatus = other.getAuditStatus();
                if (this$auditStatus == null) {
                    if (other$auditStatus != null) {
                        return false;
                    }
                } else if (!this$auditStatus.equals(other$auditStatus)) {
                    return false;
                }

                label62: {
                    Object this$tagName = this.getTagName();
                    Object other$tagName = other.getTagName();
                    if (this$tagName == null) {
                        if (other$tagName == null) {
                            break label62;
                        }
                    } else if (this$tagName.equals(other$tagName)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$gmtCreate = this.getGmtCreate();
                    Object other$gmtCreate = other.getGmtCreate();
                    if (this$gmtCreate == null) {
                        if (other$gmtCreate == null) {
                            break label55;
                        }
                    } else if (this$gmtCreate.equals(other$gmtCreate)) {
                        break label55;
                    }

                    return false;
                }

                Object this$gmtModified = this.getGmtModified();
                Object other$gmtModified = other.getGmtModified();
                if (this$gmtModified == null) {
                    if (other$gmtModified != null) {
                        return false;
                    }
                } else if (!this$gmtModified.equals(other$gmtModified)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Tag;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $clickTimes = this.getClickTimes();
        result = result * 59 + ($clickTimes == null ? 43 : $clickTimes.hashCode());
        Object $auditStatus = this.getAuditStatus();
        result = result * 59 + ($auditStatus == null ? 43 : $auditStatus.hashCode());
        Object $tagName = this.getTagName();
        result = result * 59 + ($tagName == null ? 43 : $tagName.hashCode());
        Object $gmtCreate = this.getGmtCreate();
        result = result * 59 + ($gmtCreate == null ? 43 : $gmtCreate.hashCode());
        Object $gmtModified = this.getGmtModified();
        result = result * 59 + ($gmtModified == null ? 43 : $gmtModified.hashCode());
        return result;
    }

    public String toString() {
        return "Tag(id=" + this.getId() + ", tagName=" + this.getTagName() + ", clickTimes=" + this.getClickTimes() + ", auditStatus=" + this.getAuditStatus() + ", gmtCreate=" + this.getGmtCreate() + ", gmtModified=" + this.getGmtModified() + ")";
    }
}
